<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="renderer" content="webkit">
    <title>后台管理中心</title>
    <link rel="stylesheet" href="__CSS__/pintuer.css">
    <link rel="stylesheet" href="__CSS__/admin.css">
    <script src="__JS__/jquery.js"></script>
</head>
<body style="background-color:#f2f9fd;">
<div class="header bg-main">
    <div class="logo margin-big-left fadein-top">
        <h1><img src="__IMG__/y.jpg" class="radius-circle rotate-hover" height="50" alt=""/>后台管理中心</h1>
    </div>
    <div class="head-l"> &nbsp;&nbsp; &nbsp;&nbsp;
        <?php
if($_SESSION['admin_info']['is_login']){
?>

        欢迎管理员:　<span style="color: #ff6600;font-size: 20px;"><?php echo $_SESSION['admin_info']['name']  ?></span>　

        <a class="button button-little bg-green" onclick="chpwdSelf();"><span class="icon-gears"></span> 修改密码 </a>
        　
        <script type="text/javascript">
            function chpwdSelf() {
                console.log(1);
                document.getElementById('frame').src = "{:U('Admin/selfChpwd')}";
            }
        </script>
        <a class="button button-little bg-red" href="{:U('Admin/logout')}"><span class="icon-power-off"></span> 退出登录</a>
        <?php
      }else{
      ?>
        <a class="button button-little bg-green" href="{:U('Admin/login')}"><span class="icon-user"></span> 登录</a>
        <?php
}
?>
    </div>

</div>
<div class="leftnav">
    <div class="leftnav-title"><strong><span class="icon-list"></span>菜单列表</strong></div>
    <h2><span class="icon-user"></span>管理员管理</h2>
    <ul style="display:block">
        <li><a href="{:U('Admin/listAll')}" target="right"><span class="icon-caret-right"></span>管理员列表</a></li>
        <li><a href="{:U('Admin/add')}" target="right"><span class="icon-caret-right"></span>管理员添加</a></li>

    </ul>
    <h2><span class="icon-pencil-square-o"></span>权限管理</h2>
    <ul>
        <li><a href="{:U('Permission/index')}" target="right"><span class="icon-caret-right"></span>权限列表</a></li>
        <li><a href="{:U('Permission/add')}" target="right"><span class="icon-caret-right"></span>权限添加</a></li>
        <li><a href="{:U('Role/index')}" target="right"><span class="icon-caret-right"></span>角色列表</a></li>
        <li><a href="{:U('Role/add')}" target="right"><span class="icon-caret-right"></span>角色添加</a></li>
    </ul>
    <h2><span class="icon-pencil-square-o"></span>刷单管理</h2>
    <ul>
        <li><a href="list.html" target="right"><span class="icon-caret-right"></span>内容管理</a></li>
        <li><a href="add.html" target="right"><span class="icon-caret-right"></span>添加内容</a></li>
        <li><a href="cate.html" target="right"><span class="icon-caret-right"></span>分类管理</a></li>
    </ul>
</div>
<script type="text/javascript">
    $(function () {
        $(".leftnav h2").click(function () {
            $(this).next().slideToggle(200);
            $(this).toggleClass("on");
        });
        $(".leftnav ul li a").click(function () {
            $("#a_leader_txt").text($(this).text());
            $(".leftnav ul li a").removeClass("on");
            $(this).addClass("on");
        })
    });
</script>

<div class="admin">
    <iframe id="frame" scrolling="auto" rameborder="0" src="{:U('Index/info')}" name="right" width="100%"
            height="100%"></iframe>
</div>
<div style="text-align:center;">

</div>
</body>
</html>